Skip to content

Conversation

@matthid
Copy link
Member

@matthid matthid commented Oct 8, 2018

Description

Use the new API in order to write unit-tests

let assemblies = assemblies |> Seq.toArray
let details = assemblies |> String.separated ", "
use __ = Trace.traceTask "NUnit" details
let p = createProcess setParams assemblies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this not be

createProcess setParams assemblies
|> Proc.run

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes indeed

BlythMeister
BlythMeister previously approved these changes Oct 9, 2018
let tests =
testList "Fake.Core.Process.Tests" [
testPropertyWithConfig fsCheckConfig "toWindowsCommandLine is the inverse of fromWindowsCommandLine" <|
//Process.setEnableProcessTracing true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this line is uncommented it completely breaks the "fake-context" for some reason and about the half (around 30) tests start to fail... Would be interesting to figure out why.
Note that not only tests in this file start failing but everywhere (especially the FakeVar and Context ones)

@matthid matthid merged commit e9b8834 into release/next Oct 10, 2018
@matthid matthid mentioned this pull request Oct 12, 2018
@matthid matthid deleted the process_api_hook branch November 10, 2018 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants